﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Web.Mvc;
using Peninsula.DataAccess.POCO;

namespace Peninsula.Site.Data.Models
{
    public  class TotalYearModel
    {
        [Required]
        [DisplayName("统计年份")]
        public DateTime ? DateKeyWord { get; set; } 

        [DisplayName("总数量")]
        public int TotalAmount { get; set; } = 0;
        [DisplayName("总金额")]
        public decimal TotalPrice { get; set; } = 0;

        [StringLength(50)]
        [DisplayName("合作店面")]
        public string StoreId { get; set; }

        [ForeignKey("StoreId")]
        public virtual Store Store { get; set; }

        [NotMapped]
        public List<SelectListItem> Stores { get; set; }

    }
}
